package com.yedean.mall.service;

import com.yedean.mall.api.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author yedean
 * @date 2022/8/3
 */

@FeignClient("admin")
public interface FeignAdminService {
    
    @GetMapping("/admin/menu/{id}")
    CommonResult<?> getItem(@PathVariable Long id);
    
    
    @GetMapping ("/admin/health")
    public String checkHealthy();
}
